package ysq.xyg.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import ysq.xyg.base.BaseDao;
import ysq.xyg.model.Member;

import java.util.List;

@Repository
public interface MemberDao extends BaseDao<Member> {

    public List<Member> selectEntityCount(Member member);

    public List<Member> selectEntityXFCount(Member member);

    public int selectMemberCount(Member member);

    /**
     * 查询当前招募人消费记录
     */
    List<Member> selectMoney(@Param("introductUserId") String introductUserId);

    int selectMaxId();

    List<Member> selectMyUserEntity(@Param("memberId") String memberId);

    int selectMyUserCount(@Param("memberId") String memberId);

    int selectMyUserByCardNoCount(@Param("cardNo") String cardNo);

    List<Member> selectEntity(Member member);

}